 <%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath %>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>农资与农产品全程供应链物流平台-订单详情</title>
<meta name="kewywords" content="农资与农产品全程供应链物流平台"/>
<meta name="description" content="农资与农产品全程供应链物流平台"/>
<link href="css/style.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript">
	// 修改订单
	function editCheck(){
		var selected_value = [];    
		$("input[name='ids']:checked").each(function(){    
		 	selected_value.push($(this).val());    
		});    
		if(selected_value.length == 0) {
			alert("你还没有选择任何内容"); 
			return false;
		} else if(selected_value.length > 1){
			alert("一次只能修改一条记录！"); 
			return false;
		}
		var id = selected_value[0];
		$("#editId").val(id);
		$("#orderManageEdit").submit();
	}
	// 删除订单
	function deleteCheck(){
		var selected_value = [];    
		$("input[name='ids']:checked").each(function(){    
		 	selected_value.push($(this).val());    
		});    
		if(selected_value.length == 0) {
			alert("你还没有选择任何内容"); 
			return false;
		} 
		var id = selected_value;
		document.getElementById("deleteIds").value=id;
		$("#orderManageDelete").submit();
	}
</script>
</head>
<body>
<%@include file="top.jsp" %>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	    <td width="187" height="37" bgcolor="#e0e0e0" class="brt bbt">
	    	<div class="topleft fl">系统菜单栏</div>
	    </td>
	    <td bgcolor="#e7e7e7" class=" bbt">
	    	<div class="topleft fl">您现在的位置：<a href="#">订单管理首页</a>&nbsp;>&nbsp;<span>订单详情</span>
	    </div>
	    </td>
	</tr>
	<tr>
	    <td width="187" height="100%" valign="top" bgcolor="#FFFFFF" class="brt">
	    	<div class="left_bk">
	           <div class="menu2">
				<%@include file="order_left.jsp" %>
				</div>
			</div>
		</td>
	    <td align="left" valign="top" bgcolor="#FFFFFF">
		    <div class="content">
				<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
					<tr>
			          <td height="38" style="background:url(images/zz_tit.jpg) left top repeat-x;"><div class="tt_back fl">订单详情</div><div class="fr"><img src="images/tit_right.jpg" alt="" width="103" height="38" /></div></td>
			        </tr>
			        <tr>
						<td class="borders btn">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
								    <td align="center">
									    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
									 		<tr>
										        <td colspan="2">
										        	<div style="height:350px">
											        <table border="0" cellspacing="0" cellpadding="0" align="left" style="margin-top:20px;margin-left: 50px;margin-bottom: 20px; " width="100%">
													<tr>
													<td>
													<fieldset style="width: 1045px";><legend>订单信息</legend>
														<table>
														<tr style="height: 40px;">
										   				<td align="right" width="100px">订单号：</td>
														<td width="150px" align="left" valign="middle">
														<input type="" class="input_are" id="orderid" name="order.id" value="${order.id}" readonly />
														</td>
														 <td align="right" width="100px">客户号：</td>
														<td width="150px" align="left" valign="middle">				  				
														<input type="text" id="senddate" name="order.senddate" value="${order.customerid}" class="input_are" readonly/>
														</td>
														</tr>
														<tr>
										   				<td align="right" width="100px">寄件人姓名：</td>
											           <td width="150px;"  align="left" valign="middle">
												       <input type="text" id="sender" class="input_are" name="order.sender" value="${order.sender}" readonly/></td>
														<td align="right" width="100px">收件人姓名：</td>
											            <td width="150px;" align="left" valign="middle">
												        <input type="text" id="recipient" class="input_are" name="order.recipient" value="${order.recipient}" readonly /></td>
														</tr>
														
										<tr style="height: 40px;">
											<td align="right" width="100px">寄件人电话：</td>
											<td width="150px;" align="left" valign="middle">
												<input type="text" id="sendertel" class="input_are" name="order.sendertel" value="${order.sendertel}" readonly/></td>
										   <td align="right" width="100px">收件人电话：</td>
											<td width="150px;" align="left" valign="middle">
												<input type="text" id="recipienttel" class="input_are" name="order.recipienttel" value="${order.recipienttel}" readonly/></td>
										   </tr><tr>
										    <td align="right" width="100px">寄件日期：</td>
											<td width="150px;" align="left" valign="middle">
											<input type="text" id="origin" class="input_are" name="order.origin" value="<s:date name="order.senddate" format="yyyy-MM-dd" />" readonly/></td>
										<td align="right" width="100px">订单状态：</td>
											<td width="150px;" align="left" valign="middle">
												<input type="text" id="destination" class="input_are" name="order.destination" value="${order.state}" readonly/></td>
										</tr>
										<tr style="height: 40px;">											
											 <td align="right" width="100px">原寄地：</td>
											<td width="150px;" align="left" valign="middle">
												<input type="text" id="remark" class="input_are"  name="order.remark" value="${order.origin}" readonly/></td>
										<td align="right" width="100px">目的地：</td>
											<td width="150px;" align="left" valign="middle">
												<input type="text" id="remark" class="input_are"  name="order.remark" value="${order.destination}" readonly/></td>
												  			
										</tr>
											<tr style="height: 40px;">
											<td align="right" width="100px">寄件人地址：</td>
											<td width="350px" align="left" valign="middle" colspan="3">												  
												<input type="text" style="width:411px" id="senderaddr" class="input_are" name="order.senderaddr" value="${order.senderaddr}" readonly/>
												<!--
												<textarea id="senderaddr" name="order.senderaddr" value="${order.senderaddr}" rows="" cols=""></textarea>
												-->
											</td>
										</tr>
										<tr style="height: 40px;">
											<td align="right" width="100px">收件人地址：</td>
											<td width="350px" align="left" valign="middle" colspan="3">
												<input type="text" style="width:411px" id="recipientaddr" class="input_are" name="order.recipientaddr" value="${order.recipientaddr}"  readonly/></td>
										</tr>
														</table>
													</fieldset>
													
													</td>
													</tr>
													<tr>
													<td>
													&nbsp;
													</td>
													</tr>
													<tr>
													<td>
													  <fieldset style="width:1045px">
											    <legend>物流信息</legend>
											    <table>
											    <s:if test="#session.order==0">
											   <tr>
											   <td>
											   暂时没有相关的物流信息！
											   </td>
											   </tr>
											   </s:if>
											   <s:else>
											  <tr>
											   	<td align="center" width="200px">时间</td>
											   		<td align="left" width="150px">操作人员</td>
											   			<td align="left" width="150px">运输工具牌号</td>
											   	<td align="left" width="300px">状态</td>
											   </tr>
											   <s:iterator value="orderList" id="order" >	
											   <tr height="26" bgcolor="#efefef">
												            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF" width="200px">
													            <s:date name="#order.registerdate" format="yyyy-MM-dd  HH:mm:ss" /> 
												            </td>
												            <td height="26" align="left" valign="middle" bgcolor="#FFFFFF" width="150px">
												            	<s:property value="#order.operator"/></td>
												            <td height="26" align="left" valign="middle" bgcolor="#FFFFFF" width="150px">
												            	<s:property value="#order.remark1"/></td>
												            <td height="26" align="left" valign="middle" bgcolor="#FFFFFF" width="300px">
												            	<s:property value="#order.remark"/></td>
													</tr>
														</s:iterator>
											   </s:else>
													
											    </table>
											  </fieldset>
													</td>
													</tr>
													<tr>
													<td align="center">
													&nbsp;
													</td>
													</tr>
													<tr>
													<td align="center">
														<input type="button" onclick="location.href='order/orderManageView.action'" style="background:url(images/butt_bg.png);border-style:none; width:78px; height:28px; background-repeat:no-repeat; " />
													</td>
													</tr>
													
									</table>
									</div>
									</form>
								</td>
							</tr>
					    </table>
				    </td>
				</tr>
			</table>
		</div>
	</td>
	</tr>
	</table>
	<div class="bottom">版权所有：安徽朗坤物联网</div>
</body>
</html>
									 
									 
									 

<%-- <head>
	<meta name="keywords" content=""></meta>
	<meta name="description" content="Free form designs from CSS Globe"></meta>
	<meta http-equiv="imagetoolbar" content="no" />
	<link rel="stylesheet" href="css/screen.css" media="screen" />
</head>
<body>

<div id="container">												
	<fieldset><legend>订单信息</legend>
		<p class="first">
			<label for="name">订单号</label>
			<input type="text" name="name" id="name" size="30" />
		</p>
		<p>
			<label for="email">Email</label>
			<input type="text" name="email" id="email" size="30" />
		</p>
		<p>
			<label for="web">Website</label>
			<input type="text" name="web" id="web" size="30" />
		</p>			
	</fieldset>
	<p class="submit"><button type="submit">Send</button></p>
</div>

</body>
</html>
				 --%>					 